package com.springdemo.spring5;

/**
 * Created with IntelliJ IDEA.
 * User: zjz
 * Date: 2022/02/22 23:45
 * Description:
 * Version: V1.0
 */

/**
 *使用有参构造注入
 */
public class Orders {
    private String oname;
    private String address;

    public Orders(String oname, String address) {
        this.oname = oname;
        this.address = address;
    }
    public void ordersTest(){
        System.out.println(oname+"  "+address);
    }
}
